package cn.iocoder.springboot.lab03.kafkademo.entity;

import java.util.Properties;

/**
 * @Author：YH
 * @Description：
 * @Date:Created in 2023/12/30 16:32
 */
public class Resource {

    private static final long serialVersionUID = 925971662931204553L;

    public static final Resource EMPTY_RESOURCE = new Resource("", "", "",
            "", null);

    private final String namespaceId;

    private final String group;

    private final String name;

    private final String type;

    private final Properties properties;

    public Resource(String namespaceId, String group, String name, String type, Properties properties) {
        this.namespaceId = namespaceId;
        this.group = group;
        this.name = name;
        this.type = type;
        this.properties = properties;
    }

    public String getNamespaceId() {
        return namespaceId;
    }

    public String getGroup() {
        return group;
    }

    public String getName() {
        return name;
    }

    public String getType() {
        return type;
    }

    public Properties getProperties() {
        return properties;
    }

    @Override
    public String toString() {
        return "Resource{" + "namespaceId='" + namespaceId + '\'' + ", group='" + group + '\'' + ", name='" + name
                + '\'' + ", type='" + type + '\'' + ", properties=" + properties + '}';
    }

}
